package com.bndg.shu.shuyinyangshi.utils;

import android.widget.Toast;

import com.bndg.shu.shuyinyangshi.MyApp;

/**
 * Created by r on 17/3/17.
 */

public class ToastUtils {
    private static Toast toast;

    public static void MakeToast(String msg) {
        if (toast == null) {
            toast = Toast.makeText(MyApp.mContext, msg, Toast.LENGTH_SHORT);
        } else {
            toast.setText(msg);
        }
        toast.show();
    }
}
